home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / SimpleContainer / MSimpleContainer.cp next >
Encoding:
Text File  |  1996-04-03  |  1.6 KB  |  65 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // MSimpleContainer.cp
  3. // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved. 
  4. //----------------------------------------------------------------------------------------
  5.  
  6. // Simple Container
  7.  
  8. #ifndef __UContainerApplication__
  9. #include "UContainerApplication.h"
  10. #endif
  11.  
  12. #ifndef __UMYODPARTVIEW__
  13. #include "UMyODPartView.h"
  14. #endif
  15.  
  16.  
  17. // MacApp
  18.  
  19. #ifndef __UDIALOG__
  20. #include "UDialog.h"
  21. #endif
  22.  
  23. #ifndef __UERRORMGR__
  24. #include "UErrorMgr.h"
  25. #endif
  26.  
  27. #ifndef __UMACAPPGLOBALS__
  28. #include "UMacAppGlobals.h"
  29. #endif
  30.  
  31. #ifndef __UMACAPPUTILITIES__
  32. #include "UMacAppUtilities.h"
  33. #endif
  34.  
  35. // Generate universal code
  36. #pragma processor 68000
  37.  
  38.  
  39. //----------------------------------------------------------------------------------------
  40. // main: 
  41. //----------------------------------------------------------------------------------------
  42. #pragma segment Main
  43.  
  44. void main ()
  45. {
  46.     InitUMacApp(4);                                        // Initialize MacApp with 4 calls to MoreMasters
  47.     //InitUTEView();                                        // Initialize the text editing unit 
  48.     InitUDialog();                                        // Initialize the dialog unit
  49.     //InitUGridView();                                    // Initialize the GridView unit
  50. #if qDrag
  51.     if (HasDragManager())
  52.         InitUDragManager();                                // Initialize the DragManager                                    
  53. #endif
  54.     InitUMyODPartView();                                                
  55.     
  56.     TContainerApplication* aContainerApplication = new TContainerApplication;
  57.     aContainerApplication->IContainerApplication();        
  58.     aContainerApplication->Run();                        
  59. } // main 
  60.  
  61. //----------------------------------------------------------------------------------------
  62. // End of MSimpleContainer.cp
  63.  
  64. #pragma segment Inline
  65.